package com.microservice.salmon.weixin.domain;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@JacksonXmlRootElement(localName = "xml")
public class NewsMessage extends BaseMessage {

	@JacksonXmlProperty(localName = "ArticleCount")
	private int articleCount;
	@JacksonXmlElementWrapper(localName = "Articles")
	@JacksonXmlProperty(localName = "item")
	private List<News> articles;
}
